home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1999 October
/
PCWorld_1999-10_cd1.bin
/
Software
/
Servis
/
X-setup
/
_SETUP.1
/
XQ Network Workgroup.xpl
< prev
next >
Wrap
Text File
|
1999-06-12
|
2KB
|
92 lines
"FILE"="Xteq Systems X-Setup Plugin 5.0"
"TYPE"="6"
"COUNT"="5"
"UIPATH"="Network\Security\General"
"NAME"="Workgroup Security Options"
"VERSION"="1.1"
"LANGUAGE"="VBScript"
"TEXT 1"="Show "Entire Network" in Network Neighborhood"
"TEXT 2"="Show other workgroup-users in Network Neighborhood"
"TEXT 3"="Show "Connect/Disconnect drive" in Explorer"
"TEXT 4"="Allow file sharing"
"TEXT 5"="Allow printer sharing"
"DESCRIPTION 1"="Some options to improve the security of your network."
"AUTHOR"="Xteq Systems"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
sP1="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Network\"
sV1="NoEntireNetwork"
sV2="NoWorkgroupContents"
sP1andV3="HKCU\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\NoNetConnectDisconnect"
sV4="NoFileSharing"
sV5="NoPrintSharing"
Sub Plugin_Initialize
i=RegReadValue(sP1&sV1)
if i=0 or IsEmpty(i) then
SetUIElement 1,true
end if
i=RegReadValue(sP1&sV2)
if i=0 or IsEmpty(i) then
SetUIElement 2,true
end if
i=RegReadValue(sP1andV3)
if i=0 or IsEmpty(i) then
SetUIElement 3,true
end if
i=RegReadValue(sP1&sV4)
if i=0 or IsEmpty(i) then
SetUIElement 4,true
end if
i=RegReadValue(sP1&sV5)
if i=0 or IsEmpty(i) then
SetUIElement 5,true
end if
End Sub
Sub Plugin_CheckData(ElementIndex)
End Sub
Sub ae(val,Path)
if val=true then
Call RegWriteValue(path,1,2)
else
Call RegWriteValue(path,0,2)
end if
end Sub
Sub Plugin_Apply(ElementIndex,ElementSubIndex)
b=GetUIElement(1)
Call ae(not b,sP1&sV1)
b=GetUIElement(2)
Call ae(not b,sP1&sV2)
b=GetUIElement(3)
Call ae(not b,sP1andV3)
b=GetUIElement(4)
Call ae(not b,sP1&sV4)
b=GetUIElement(5)
Call ae(not b,sP1&sV5)
Restart
End Sub
Sub Plugin_Terminate
End Sub